package com.kyxx.mycommonproject.dingdanxiangqing;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;

import com.kyxx.mycommonproject.R;
import com.kyxx.mycommonproject.base.BaseActivity0;

public class OrderDetailActivity extends BaseActivity0 {
    private TextView tv_num;
    private TextView tv_status;
    private TextView tv_name;
    private TextView tv_phone;
    private TextView tv_address;
    private ImageView iv_shop;
    private TextView tv_shop;
    private ImageView iv_good;
    private TextView tv_good;
    private TextView tv_price;
    private TextView tv_price1;
    private TextView tv_count;
    private TextView tv_price_goods;
    private TextView tv_price_deliver;
    private TextView tv_price_all;
    private TextView tv_price_true;
    private Button btn_contact;
    private Button btn_call;
    private Button btn_order_detail1;
    private Button btn_order_detail2;
    private Button btn_order_detail3;
    private TextView tv_type;

    @Override
    protected void loadViewLayout() {
        setContentView(R.layout.activity_order_detail);
    }

    @Override
    protected void findViewById() {
        tv_num = (TextView) findViewById(R.id.tv_num);//订单号
        tv_status = (TextView) findViewById(R.id.tv_status);//订单状态
        tv_name = (TextView) findViewById(R.id.tv_name);//用户名
        tv_phone = (TextView) findViewById(R.id.tv_phone);//联系电话
        tv_address = (TextView) findViewById(R.id.tv_address);//地址
        iv_shop = (ImageView) findViewById(R.id.iv_shop);//店铺图片
        tv_shop = (TextView) findViewById(R.id.tv_shop);//店铺名
        iv_good = (ImageView) findViewById(R.id.iv_good);//商品图片
        tv_good = (TextView) findViewById(R.id.tv_good);//商品名
        tv_price = (TextView) findViewById(R.id.tv_price);//商品价格
        tv_price1 = (TextView) findViewById(R.id.tv_price1);//商品价格1
        tv_count = (TextView) findViewById(R.id.tv_count);//商品数量
        tv_price_goods = (TextView) findViewById(R.id.tv_price_goods);//商品总价
        tv_price_deliver = (TextView) findViewById(R.id.tv_price_deliver);//运费
        tv_price_all = (TextView) findViewById(R.id.tv_price_all);//订单总价
        tv_price_true = (TextView) findViewById(R.id.tv_price_true);//实付款
        btn_contact = (Button) findViewById(R.id.btn_contact);//联系卖家
        btn_call = (Button) findViewById(R.id.btn_call);//拨打电话
        btn_order_detail1 = (Button) findViewById(R.id.btn_order_detail1);//查看物流
        btn_order_detail2 = (Button) findViewById(R.id.btn_order_detail2);//删除订单
        btn_order_detail3 = (Button) findViewById(R.id.btn_order_detail3);//追加评价
        tv_type = (TextView) findViewById(R.id.tv_type);//商品类型
    }

    @Override
    protected void setListener() {
        btn_contact.setOnClickListener(onClickListener);
        btn_call.setOnClickListener(onClickListener);
        btn_order_detail1.setOnClickListener(onClickListener);
        btn_order_detail2.setOnClickListener(onClickListener);
        btn_order_detail3.setOnClickListener(onClickListener);
    }

    @Override
    protected void processLogic() {
        loadToolBar("订单详情");
    }

    View.OnClickListener onClickListener = new View.OnClickListener() {
        @Override
        public void onClick(View view) {
            switch (view.getId()) {
                case R.id.btn_contact:
                    break;
                case R.id.btn_call:
                    break;
                case R.id.btn_order_detail1:
                    break;
                case R.id.btn_order_detail2:
                    break;
                case R.id.btn_order_detail3:
                    break;
            }
        }
    };
}
